package com.sasis.model;
// Generated 2007-8-1 18:07:13 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_RECEIVEMAN"
 *     
 */

public class VipServiceReceiveman extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private String receivedManName;
    private String receivedManDuty;
    private Timestamp receivedManBeginTime;
    private Timestamp receivedManEndTime;
    private String receivedManRemark;
    private Integer receivedManOperator;
    private Timestamp receivedManOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceReceiveman() {
    }

    
    /** full constructor */
    public VipServiceReceiveman(Integer vipServiceSheetId, String receivedManName, String receivedManDuty, Timestamp receivedManBeginTime, Timestamp receivedManEndTime, String receivedManRemark, Integer receivedManOperator, Timestamp receivedManOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.receivedManName = receivedManName;
        this.receivedManDuty = receivedManDuty;
        this.receivedManBeginTime = receivedManBeginTime;
        this.receivedManEndTime = receivedManEndTime;
        this.receivedManRemark = receivedManRemark;
        this.receivedManOperator = receivedManOperator;
        this.receivedManOperateDate = receivedManOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_NAME"
     *             length="64"
     *         
     */

    public String getReceivedManName() {
        return this.receivedManName;
    }
    
    public void setReceivedManName(String receivedManName) {
        this.receivedManName = receivedManName;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_DUTY"
     *             length="256"
     *         
     */

    public String getReceivedManDuty() {
        return this.receivedManDuty;
    }
    
    public void setReceivedManDuty(String receivedManDuty) {
        this.receivedManDuty = receivedManDuty;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_BEGIN_TIME"
     *             length="7"
     *         
     */

    public Timestamp getReceivedManBeginTime() {
        return this.receivedManBeginTime;
    }
    
    public void setReceivedManBeginTime(Timestamp receivedManBeginTime) {
        this.receivedManBeginTime = receivedManBeginTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_END_TIME"
     *             length="7"
     *         
     */

    public Timestamp getReceivedManEndTime() {
        return this.receivedManEndTime;
    }
    
    public void setReceivedManEndTime(Timestamp receivedManEndTime) {
        this.receivedManEndTime = receivedManEndTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_REMARK"
     *             length="1024"
     *         
     */

    public String getReceivedManRemark() {
        return this.receivedManRemark;
    }
    
    public void setReceivedManRemark(String receivedManRemark) {
        this.receivedManRemark = receivedManRemark;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getReceivedManOperator() {
        return this.receivedManOperator;
    }
    
    public void setReceivedManOperator(Integer receivedManOperator) {
        this.receivedManOperator = receivedManOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="RECEIVED_MAN_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getReceivedManOperateDate() {
        return this.receivedManOperateDate;
    }
    
    public void setReceivedManOperateDate(Timestamp receivedManOperateDate) {
        this.receivedManOperateDate = receivedManOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("receivedManName").append("='").append(getReceivedManName()).append("' ");			
      buffer.append("receivedManDuty").append("='").append(getReceivedManDuty()).append("' ");			
      buffer.append("receivedManBeginTime").append("='").append(getReceivedManBeginTime()).append("' ");			
      buffer.append("receivedManEndTime").append("='").append(getReceivedManEndTime()).append("' ");			
      buffer.append("receivedManRemark").append("='").append(getReceivedManRemark()).append("' ");			
      buffer.append("receivedManOperator").append("='").append(getReceivedManOperator()).append("' ");			
      buffer.append("receivedManOperateDate").append("='").append(getReceivedManOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceReceiveman) ) return false;
		 VipServiceReceiveman castOther = ( VipServiceReceiveman ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getReceivedManName()==castOther.getReceivedManName()) || ( this.getReceivedManName()!=null && castOther.getReceivedManName()!=null && this.getReceivedManName().equals(castOther.getReceivedManName()) ) )
 && ( (this.getReceivedManDuty()==castOther.getReceivedManDuty()) || ( this.getReceivedManDuty()!=null && castOther.getReceivedManDuty()!=null && this.getReceivedManDuty().equals(castOther.getReceivedManDuty()) ) )
 && ( (this.getReceivedManBeginTime()==castOther.getReceivedManBeginTime()) || ( this.getReceivedManBeginTime()!=null && castOther.getReceivedManBeginTime()!=null && this.getReceivedManBeginTime().equals(castOther.getReceivedManBeginTime()) ) )
 && ( (this.getReceivedManEndTime()==castOther.getReceivedManEndTime()) || ( this.getReceivedManEndTime()!=null && castOther.getReceivedManEndTime()!=null && this.getReceivedManEndTime().equals(castOther.getReceivedManEndTime()) ) )
 && ( (this.getReceivedManRemark()==castOther.getReceivedManRemark()) || ( this.getReceivedManRemark()!=null && castOther.getReceivedManRemark()!=null && this.getReceivedManRemark().equals(castOther.getReceivedManRemark()) ) )
 && ( (this.getReceivedManOperator()==castOther.getReceivedManOperator()) || ( this.getReceivedManOperator()!=null && castOther.getReceivedManOperator()!=null && this.getReceivedManOperator().equals(castOther.getReceivedManOperator()) ) )
 && ( (this.getReceivedManOperateDate()==castOther.getReceivedManOperateDate()) || ( this.getReceivedManOperateDate()!=null && castOther.getReceivedManOperateDate()!=null && this.getReceivedManOperateDate().equals(castOther.getReceivedManOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getReceivedManName() == null ? 0 : this.getReceivedManName().hashCode() );
         result = 37 * result + ( getReceivedManDuty() == null ? 0 : this.getReceivedManDuty().hashCode() );
         result = 37 * result + ( getReceivedManBeginTime() == null ? 0 : this.getReceivedManBeginTime().hashCode() );
         result = 37 * result + ( getReceivedManEndTime() == null ? 0 : this.getReceivedManEndTime().hashCode() );
         result = 37 * result + ( getReceivedManRemark() == null ? 0 : this.getReceivedManRemark().hashCode() );
         result = 37 * result + ( getReceivedManOperator() == null ? 0 : this.getReceivedManOperator().hashCode() );
         result = 37 * result + ( getReceivedManOperateDate() == null ? 0 : this.getReceivedManOperateDate().hashCode() );
         return result;
   }   





}
